package com.hx.vending.dao;

import com.hx.vending.bean.SubsidiaryRole;
import com.hx.vending.bean.UserOperation;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2019/3/12.
 */
@Repository
public interface SubsidiaryRoleMapper {

    int insertSelective(SubsidiaryRole subsidiaryRole);

    int updateByPrimaryKey(SubsidiaryRole subsidiaryRole);

    List<SubsidiaryRole> selectByUserId(@Param("userId") Integer userId);

    int deleteByPrimaryKey(@Param("subsidiaryRoleId") Integer subsidiaryRoleId);

    int deleteByBatch(@Param("roleIds") String[] roleIds);

    SubsidiaryRole selectByPrimaryKeySelective(SubsidiaryRole record);

}
